package com.myschool.server.web.command;

import com.myschool.server.model.UserType;

public class UserSession {

	public static final String CURRENT_USER = "CURRENT_USER";

	private Long userId;

	private String userName;

	private UserType userType;
	
	private Long schoolId;

	public UserSession(Long id, String name, UserType type,Long schoolId) {

		this.userId = id;
		this.userName = name;
		this.userType = type;
		this.schoolId=schoolId;
	}

	/**
	 * @return the userId
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName
	 *            the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the userType
	 */
	public UserType getUserType() {
		return userType;
	}

	/**
	 * @param userType
	 *            the userType to set
	 */
	public void setUserType(UserType userType) {
		this.userType = userType;
	}

	/**
	 * @return the schoolId
	 */
	public Long getSchoolId() {
		return schoolId;
	}

	/**
	 * @param schoolId the schoolId to set
	 */
	public void setSchoolId(Long schoolId) {
		this.schoolId = schoolId;
	}

}
